﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <ControlTemplate x:Key="threeButtonToolBar" TargetType="{x:Type ToolBar}">
        <ToolBar Width="Auto">
            <Button Command="{Binding Add}">
                <WrapPanel>
                    <Image Source="../../Resources/Icons/add.png" Width="16" Height="16" RenderOptions.BitmapScalingMode="NearestNeighbor" />
                    <TextBlock Text="Add" Margin="5 0"/>
                </WrapPanel>
            </Button>
            <Button Command="{Binding SaveChanges}">
                <WrapPanel>
                    <Image Source="../../Resources/Icons/save.png" Width="16" Height="16"  RenderOptions.BitmapScalingMode="NearestNeighbor" />
                    <TextBlock Text="Save Changes" Margin="5 0"/>
                </WrapPanel>
            </Button>
            <Button Command="{Binding RemoveSelected}">
                <WrapPanel>
                    <Image Source="../../Resources/Icons/remove.png" Width="16" Height="16"  RenderOptions.BitmapScalingMode="NearestNeighbor" />
                    <TextBlock Text="Remove Selected" Margin="5 0"/>
                </WrapPanel>
            </Button>
        </ToolBar>
    </ControlTemplate>
    <ControlTemplate x:Key="twoButtonToolBar" TargetType="{x:Type ToolBar}">
        <ToolBar Width="Auto">
            <Button Command="{Binding SaveChanges}">
                <WrapPanel>
                    <Image Source="../../Resources/Icons/save.png" Width="16" Height="16"  RenderOptions.BitmapScalingMode="NearestNeighbor" />
                    <TextBlock Text="Save Shanges" Margin="5 0"/>
                </WrapPanel>
            </Button>
            <Button Command="{Binding RemoveSelected}">
                <WrapPanel>
                    <Image Source="../../Resources/Icons/remove.png" Width="16" Height="16"  RenderOptions.BitmapScalingMode="NearestNeighbor" />
                    <TextBlock Text="Remove Selected" Margin="5 0"/>
                </WrapPanel>
            </Button>
        </ToolBar>
    </ControlTemplate>
</ResourceDictionary>